<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/common.css">
</head>
<body>
	<div class='status'>
		<span>商品分类列表</span><a  class='add' href="<?php echo U(addTopCate);?>"><strong>添加顶级分类<b></b></strong></a>
	</div>
	<div>
		<table class='table' cellspacing='0px' cellpadding='0px'>
			<tr>
				<th>ID</th>
				<th>分类名称</th>
				<th>操作</th>
			</tr>
			<?php if(is_array($data)): foreach($data as $key=>$v): ?><tr>
					<td><?php echo ($v["id"]); ?></td>
					<td style='text-align:left;'><?php echo ($v["html"]); echo ($v["name"]); ?></td>
					<td><a href="<?php echo U('addCate',array('pid'=>$v['id']));?>">添加子类</a>
					<a href="<?php echo U('updateCate',array('id'=>$v['id']));?>">修改</a>
					<a href="<?php echo U('delCate',array('id'=>$v['id']));?>">删除</a>
					</td>
				</tr><?php endforeach; endif; ?>
		</table>
	</div>
</body>
</html>